// "留下来吧,Player"对话框设计

// 关闭VSCode非必要报错
// ignore_for_file: camel_case_types

import 'package:crazy_mita_problem_project/utils/my_buttons/my_button_confirmed.dart';
import 'package:flutter/material.dart';

class Dialog_stayWithMe_First extends StatelessWidget {
  const Dialog_stayWithMe_First({super.key});

  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      backgroundColor: Colors.white,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(20),
        side: BorderSide(
          color: Colors.deepPurple.shade100,
          width: 3.0,
        ),
      ),
      content: SizedBox(
        height: 140,
        width: 210,
        child: Padding(
          padding: const EdgeInsets.only(top: 12.0,bottom: 12.0),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Text(
                "留下来吧 , Player",
                style: TextStyle(
                  fontSize: 24,
                ),
              ),
              SizedBox(
                height: 50,
                width: 200,
                child: MyButton_Confirmed(
                  text: "关闭", 
                  onPressed:(){
                    // 进行弹出(关闭)当前页面操作
                    Navigator.of(context).pop();
                  },
                ),
              )
            ],
          ),
        ),
      ),
    );
  }
}